package com.software.demo7;

import java.util.List;
import java.util.Map;
import java.util.Set;

public class Teacher {
    private String name;
    private List<String> course;
    private Set<String> courseset;
    private Map<String, String> myStudent;

    public Map<String, String> getMyStudent() {
        return myStudent;
    }

    public void setMyStudent(Map<String, String> myStudent) {
        this.myStudent = myStudent;
    }

    public void showMyStudent() {
        //先把key找出来，用set接收
        Set<String> keySet = myStudent.keySet();
        for(String key : keySet){
            System.out.println("key:"+ key + " value:" + myStudent.get(key));
        }
    }

    public void showCourseSet() {
        for(String s : courseset){
            System.out.println(s);
        }
    }

    public Set<String> getCourseset() {
        return courseset;
    }

    public void setCourseset(Set<String> courseset) {
        this.courseset = courseset;
    }

    public List<String> getCourse() {
        return course;
    }

    public void showCourse() {
        for(String s : course){
            System.out.println(s);
        }
    }

    public void setCourse(List<String> course) {
        this.course = course;
    }

    /**
     * 内部bean
     */
    private Computer computer;

    public void showTeacherComputer() {
        this.computer.showBrand();
    }

    public Computer getComputer() {
        return computer;
    }

    public void setComputer(Computer computer) {
        this.computer = computer;
    }

    public void showName(){
        //System.out.println(name.isEmpty());
        System.out.println("name:" + name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
